/** @namespace app.model.DetailAnchorSchedule */
module.exports = app => {
    const {STRING, INTEGER, DECIMAL, TINYINT, DATE, BOOLEAN} = app.Sequelize;

    const DB = app.model.define('detail_anchor_schedule', {
        start: DATE,
        end: DATE,
        last: DATE,
        loop: {type: TINYINT(1).UNSIGNED, defaultValue: 0},
        online: {type: INTEGER.UNSIGNED, defaultValue: 0},
        qrcode: {type: BOOLEAN, defaultValue: false},
        cost: {type: DECIMAL(10, 2), defaultValue: 0},
        click: {type: INTEGER, defaultValue: 0},
        added: {type: INTEGER, defaultValue: 0},
        reflux: {type: INTEGER, defaultValue: 0},
        danmu: {type: INTEGER, defaultValue: 0},
    }, {timestamps: false});
    return DB;
};